﻿@model CEIT.MVC3.Web.Controllers.ViewModels.ChangePasswordViewModel
@{
    ViewBag.Title = "Alterar Senha";
    Layout = "~/Views/Shared/_LayoutLogado.cshtml";
}
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true, "Atenção!")
    <center>
        <div class="painel-senha">
            @if (!(bool)ViewBag.IsRoot || Model.Id == 0)
            {
                <div class="editor-label">
                    @Html.LabelFor(model => model.NmSenhaOld)
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(model => model.NmSenhaOld, new { autocomplete = "off", onCopy = "return false;", onPaste = "return false;" })
                </div>
            }
            else
            {
                @Html.HiddenFor(model => model.Id)
            }
            <div class="editor-label">
                @Html.LabelFor(model => model.NmSenha)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(model => model.NmSenha, new { autocomplete = "off", onCopy = "return false;", onPaste = "return false;" })
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.NmSenhaConfirm)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(model => model.NmSenhaConfirm, new { autocomplete = "off", onCopy = "return false;", onPaste = "return false;" })
            </div>
            <p>
                <input type="submit" value="Alterar" class="btn-gold" />
                <span>&nbsp;</span> <a onclick="javascritp:window.history.back(1);" class="btn-gold">
                    Voltar</a>
            </p>
        </div>
    </center>
}
@section Style {
    <style type="text/css">
        .painel-senha { width: 300px; border: solid thin gray; padding: 2%; margin: 2%; border-radius: 25px; }
    </style>
}
@section Script {}
